﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class Program3
    {
        static void Main(string[] args)
        {
            Teacher te = new Teacher();
            te.student = "孙悟空";

            Teacher te1 = new Teacher();
            te1.student = "猪八戒";

            Teacher.teacher = "唐僧";
            te.say();
            te1.say();

            Teacher.teacher = "嫦娥";
            te.say();
            te1.say();


        }
        class Teacher
        {
            public string student { get; set; }

            public static string teacher;

            public Teacher() { }


            public void say()
            {
                Console.WriteLine("我叫{0}，我的老师是{1}", this.student, teacher);

            }


        }



    }
}